package cn.edu.lingnan.tourism.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author liyinglai
 */
@Table(name = "tab_category")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Category {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer cid;
    private String cname;
}
